package com.jiguiquan.www.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by jiguiquan on 2021/10/14
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/getMap")
    public Map<String, Object> getDemo(){
        Map<String, Object> map = new HashMap<>();
        map.put("a", "a");
        map.put("b", 2);
        map.put("c", true);
        map.put("d", Arrays.asList("a","b","c","d","e"));
        return map;
    }
}
